package com.agent.demo;

import java.lang.instrument.Instrumentation;

public class PreMainAgent {
    /**
     * 注意方法名必须是premain
     */
    public static void premain(String agentArgs, Instrumentation inst) {
        System.out.println("----------premain 执行了 agentArgs = " + agentArgs);
        inst.addTransformer(new DefineTransformer());
    }
}
